<?php 

include '../function.php';

// 索引数组

$arr = [178,[56,546,[4,564,[54654,456,45],4],64],56,454];

// var_dump($arr[1][2][1]);exit;
// key=vlues
$arr[0]= 90;

$arr[1] =180;

echo $arr[2];

//关联数组

$arr1 = ["name"=>"学并思",'sex'=>'男','age'=>18];

// echo $arr["name"];



$arr = [34,54,5,45,4,5,45,4,3];

$max = $arr[0];
// for ($i=1; $i < count($arr); $i++) { 
// 	if($max<$arr[$i]){
// 		$max= $arr[$i];
// 	}
// }

// foreach ($arr1 as $k => $v) {
// 	echo "key:".$k.",vlue:".$v."<br>";
// }

$arr1 = [345,45,4,545,89];

$arr2 = [454,45,45,45,90,90];

$arr1 = ["name"=>"学并思",'sex'=>'男','age'=>18];
$arr1['qq'] =898989;
// $arr = array_diff($arr1, $arr2);

// array_push($arr1, ['qq'=>2398402934]);

// var_dump($arr1);

$arr2 = [454,45,45,45,90,90];

var_dump(shuffle($arr2));
var_dump($arr2 );

// var_dump(array_unique($arr2));


// $res = array_slice($arr2, 2,4);

// var_dump($res);














 ?>